package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.api.vo.response.base.BaseResponseVo;
import com.jeesite.modules.kj.entity.KjMemberIntegralHistory;
import com.jeesite.modules.kj.entity.KjMemberIntegrals;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class IntegralResponseVo extends BaseResponseVo<KjMemberIntegrals> {

    @ApiModelProperty(value = "积分ID")
    private String id;
    @ApiModelProperty(value = "用户ID")
    private String memberId;
    @ApiModelProperty(value = "总积分")
    private BigDecimal totalIntegrals;


    @ApiModelProperty(value = "已使用积分")
    private BigDecimal usedIntegrals;

    public IntegralResponseVo() {
    }

    @Override
    public void setEntity(KjMemberIntegrals entity) {
        BeanUtils.copyProperties(entity, this);
    }

    public IntegralResponseVo(KjMemberIntegrals entity) {
        BeanUtils.copyProperties(entity, this);
    }
}
